<#include "/common/head.html"/> 
<table id="dg"></table>
<div class="easyui-panel addPage" data-options="fit:true,border:false,novalidate:true">
    <form class="easyui-form" id="ff" method="post" data-options="novalidate:true">
        <table class="table1">
            <tr>
               	<td>
	               	<span>规则集名称：</span>
	               	<span class="item_obj">
	            		<input required="true" class="easyui-validatebox" type="text" id="name" name="name" value=""></input>
	            	</span>    
           		</td>
           	</tr>
           	
           	<tr>
           		<td>   
	           		<a class="easyui-linkbutton color1 l-btn l-btn-small" href="javascript:void(0)" onclick="javascript:save();" style="width: 220px;">
	   					<span class="l-btn-center" style="margin-top: 0px;"><span class="l-btn-text">确定</span></span>
	   				</a>
   				</td>
           	</tr>
        </table>
    </form>
</div>
<script type="text/javascript">
function save() {
	$("#ff").form('submit', { 
        url: "add", 
        onSubmit: function () {   
        	//表单提交前的回调函数 
        	if(!$("#ff").form('enableValidation').form('validate')) {
            	$.messager.alert('操作结果','请检查标红输入项','error');
        		return false;
        	}       	
        	
        }, 
        success: function (v) {
        	location.replace('list')
    	}
      }); 
}

</script>
<#include "/common/dialogWindow.html"/>
<#include "/common/foot.html"/>